package com.amos.generate.service.impl;

import com.amos.generate.bean.ServiceImplField;
import com.amos.generate.service.AbstractHandler;
import com.amos.generate.type.TemplateTypeEnum;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.generate.service.impl
 * @ClassName ServiceImplHandler
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020/3/11 22:08
 * @Version 1.0
 **/
public class ServiceImplHandler extends AbstractHandler<ServiceImplField> {

    private String path;
    private String rootPackageName;
    private String tableName;
    private boolean isPage;

    public ServiceImplHandler(String path, String rootPackageName, String tableName, boolean isPage) {
        super(path, rootPackageName, tableName, TemplateTypeEnum.SERVICEIMPL);
        this.path = path;
        this.rootPackageName = rootPackageName;
        this.tableName = tableName;
        this.isPage = isPage;
    }

    @Override
    public ServiceImplField field() {
        ServiceImplField serviceImplField = new ServiceImplField();
        serviceImplField.setPage(isPage);
        return serviceImplField;
    }
}
